<include file="public:ucheader"/>
<script language="javascript" type="text/javascript" src="__ROOT__/statics/js/jquery/plugins/formvalidator.js"></script>
<script language="javascript" type="text/javascript" src="__ROOT__/statics/js/jquery/plugins/formvalidatorregex.js"></script>


<link href="__ROOT__/statics/css/formvalidator.css" rel="stylesheet" type="text/css" />
<!--全局样式-->
<load href="__TMPL__public/css/uc/common.css" />
<!--样式-->
<load href="__TMPL__public/css/uc/css_b.css" />
<load href="__TMPL__public/css/ucindex.css" /> 
<load href="__TMPL__public/css/account.css" /> 
<div class="ucleft">
	<!--用户-->
    <include file="userleft"/>
    <!--用户-->
   
    <br clear="all"/>
</div>
<div class="ucright">
	<div class="ucnav">
 		<ul>
        	<li><a href="{:u('uc/account_basic')}">基本信息</a></li>
            <li><a <eq name="ACTION_NAME" value="account_face"> class="navon" </eq>  href="{:u('uc/account_face')}">上传头像</a></li>
            <li><a href="{:u('uc/account_sns')}">账号绑定</a></li>
            <li><a href="{:u('uc/account_pwd')}">修改密码</a></li>
        </ul>    	    
    </div>
    <div class="uccontent">

    <div class="uc_account clearfix"> 
		
        
        <!--右侧-->
        <form action="{:u('uc/upload')}" method="post" name="myform" id="myform" enctype="multipart/form-data">
        <div class="right_region exchange">

            <div class="">

                <div class="prompt_div">
                    <ul>
                        <li class="show_color">1.选择图片</li>
                        <li class="show_li"></li>
                        <li>2.剪辑图片</li>
                        <li class="hide_li"></li>
                        <li>3.修改完成</li>
                    </ul>
                </div>
            	<table cellpadding="0" cellspacing="0">
                    <tr>
                        <td class="tiaotc">当前头像：</td>
                        <td><div class="dangqtx">
                        <eq name="face['80']" value="">
                            <img src="/data/user/m_avatar.gif" width="80" height="80" />
                        <else/>
                            <img src="{$face['80']}" width="80" height="80" />
                        </eq>
                        </div></td>
                    </tr>
                    <tr>
                        <td class="tiaotc">上传头像：</td>
                        <td>
                           	<div class="ghtx" class="ghtx_a"><input size="40" id="subSearch" class="xuasrs_d" class="yulian" type="file" name='upload' tabindex="1" value="上传图像"></div>
                            
                           	<div style=" clear:both; padding-top:3px;">建议使用正方形图片，支持jpg、gif、png格式，100K内。</div>
                        </td>
                    </tr>
                    
                    <tr>
                        <td class="tiaotc"></td>
                        <td class="tiaotcs">
                        <input id="save_thumb" style="background: #ff6666;border:0;border-radius: 5px;color:#ffffff;" class="fabu" type="submit" name="submit" value="下一步"></td>
                        <!--id="save_thumb"-->
                    </tr>
                </table>    
            </div>
            
        </div>
        </form>  
    </div>

        
        
        
        
        
        
        
        
        
        
        
    </div>
</div>
<script type="text/javascript">
$(function(){ 
	$.formValidator.initConfig({formid:"myform",autotip:true,
		onerror:function(msg,obj){
			art.dialog({content:msg,lock:true,width:'200',height:'50'}, 
					   function(){this.close();$(obj).focus();})
			}
	});
		
	$("#passwd").formValidator({onshow:"填写密码",onfocus:"填写6位以上密码"})
		.inputValidator({min:6,onerror:"请填写6位以上密码"});
		
	$("#new_pwd").formValidator({onshow:"填写密码",onfocus:"填写6位以上密码"})
		.inputValidator({min:6,onerror:"请填写6位以上密码"});

	$("#confirm_pwd").formValidator({onshow:"确认密码",onfocus:"确认密码",oncorrect:"填写正确"})
		.inputValidator({min:6,onerror:"请填写6位以上密码"})
		.compareValidator({desid:"new_pwd",operateor:"=",onerror:"两次输入密码不一致"});	
});
</script>
<include file="public:footer"/> 